StoreEngine\Classes\Cart D

Total Complexity 267
Dependencies 22
Dependents 6
Total lines 2,164
Lines of code 978
Logical lines of code 543
Comment lines 847
Methods 114
Properties 16

Methods 114

Method Rating Maintainability Complexity Lines of code
merge_carts()
A
38 14 65
add_product_to_cart()
A
37 13 72
load_cart()
A
42 13 52
get_product_subtotal()
A
47 8 39
validate_cart_items()
A
47 8 34
generate_cart_item_id()
A
51 8 25
get_chosen_shipping_method_for_package()
A
55 8 18
get_tax_totals()
S
49 7 30
get_cart_subtotal()
S
56 7 16
handle_remove_cart_item_request()
S
54 6 20
needs_shipping()
S
59 6 14
calculate_shipping()
S
52 5 24
store_on_database()
S
53 5 22
get_taxes_total()
S
59 5 14
update_quantity()
S
58 5 14
remove_cart_item()
S
57 4 15
handle_remove_coupon_request()
S
60 4 13
__construct()
S
52 3 23
is_product_in_cart()
S
66 4 8
show_shipping()
S
69 4 6
get_tax_price_display_mode()
S
70 3 6
validate_coupon()
S
66 3 8
has_onetime_products()
S
64 3 10
find_product_in_cart()
S
68 3 8
is_cart_consist_subscription_product()
S
64 3 10
set_meta()
S
68 3 7
get_chosen_shipping_methods()
S
64 3 10
get_cart_item_by_product()
S
67 3 8
is_price_in_cart()
S
67 3 8
apply_coupon()
S
63 2 11
get_shipping_packages()
S
53 1 24
get_cart_tax()
S
71 2 5
set_new_cookie()
S
74 2 5
has_subscription_product()
S
78 2 3
remove_meta()
S
70 2 6
filter_items_needing_shipping()
S
75 2 4
set_meta_multiple()
S
73 2 5
get_displayed_subtotal()
S
78 2 3
get_remove_item_url()
S
70 2 5
get_total()
S
67 2 7
get_totals()
S
79 2 3
init()
S
71 2 6
get_count()
S
69 2 7
remove_coupon()
S
63 2 10
get_product_price()
S
65 2 9
get_total_discount()
S
68 2 7
get_coupon_discount_amount()
S
67 2 7
calculate_cart_totals()
S
66 2 9
clear_cart()
S
64 1 11
get_totals_var()
S
79 1 3
get_shipping_total()
S
75 1 4
get_total_tax()
S
75 1 4
get_cart_item()
S
79 1 3
get_cart_contents_tax()
S
75 1 4
get_cart_contents_total()
S
75 1 4
get_shipping_tax()
S
75 1 4
get_discount_tax()
S
75 1 4
get_coupon_discount_tax_totals()
S
82 1 3
get_fee_total()
S
75 1 4
get_discount_total()
S
75 1 4
get_subtotal_tax()
S
75 1 4
get_subtotal()
S
75 1 4
get_items_count()
S
80 1 3
has_calculated_shipping()
S
82 1 3
get_cart_contents_taxes()
S
75 1 4
get_fee_tax()
S
75 1 4
get_shipping_taxes()
S
75 1 4
set_fee_taxes()
S
80 1 3
get_fee_taxes()
S
75 1 4
get_taxes()
S
74 1 4
item_exists()
S
79 1 3
has_items()
S
79 1 3
get_cart_items()
S
82 1 3
get_tax_amount()
S
74 1 4
get_shipping_tax_amount()
S
75 1 4
remove_coupons()
S
72 1 6
validate_items()
S
78 1 4
shipping_methods_have_changed()
S
66 1 8
get_default_shipping_method_for_package()
S
71 1 5
get_coupon_discount_totals()
S
82 1 3
set_fee_total()
S
79 1 3
set_cart_contents_taxes()
S
80 1 3
set_coupon_discount_totals()
S
81 1 3
needs_payment()
S
74 1 4
is_coupon_applied()
S
79 1 3
get_coupons()
S
82 1 3
get_meta()
S
79 1 3
is_cart_empty()
S
79 1 3
get_coupon_discount_tax_amount()
S
78 1 3
get_cart_hash()
S
82 1 3
get_items_needing_shipping()
S
78 1 3
get_fees()
S
81 1 3
get_customer()
S
81 1 3
reset_totals()
S
76 1 4
add_fee()
S
65 1 9
fees_api()
S
82 1 3
calculate_fees()
S
80 1 3
set_coupon_discount_tax_totals()
S
81 1 3
set_shipping_taxes()
S
80 1 3
set_applied_coupons()
S
81 1 3
set_totals()
S
79 1 3
set_subtotal()
S
79 1 3
set_subtotal_tax()
S
80 1 3
set_discount_total()
S
80 1 3
set_discount_tax()
S
80 1 3
set_shipping_total()
S
79 1 3
set_shipping_tax()
S
80 1 3
set_cart_contents_total()
S
79 1 3
set_cart_contents_tax()
S
80 1 3
set_total()
S
78 1 3
set_total_tax()
S
79 1 3
get_shipping_methods()
S
82 1 3
set_fee_tax()
S
80 1 3
display_prices_including_tax()
S
75 1 4